local Lua__guanku = fk.CreateSkill {

  name = "Lua__guanku",

  tags = {  },

}

Fk:loadTranslationTable{
    
    ["Lua__guanku"] = "鲖苦",
    ["$Lua__guanku1"] = "一招误判，满盘皆输！",
    ["$Lua__guanku2"] = "我会撕碎你手里的胜利！",
    [":Lua__guanku"] = "一名其他角色于其非额定回合内使用牌时，你可视为对其使用一张【杀】，若此【杀】造成了伤害，当前回合立即结束。",

}

Lua__guanku:addEffect(fk.CardUsing, {
    anim_type = "offensive",
    can_trigger = function(self, event, target, player, data)
        return player:hasSkill(Lua__guanku.name) and target ~= player and 
        target:getCurrentExtraTurnReason() ~= "game_rule" and not player:isProhibited(target, Fk:cloneCard("slash"))
    end,
    on_cost = function(self, event, target, player, data)
      return player.room:askToSkillInvoke(player, {skill_name = Lua__guanku.name,})
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        room:useVirtualCard("slash", nil, player, {target}, Lua__guanku.name, true)
    end,
})

Lua__guanku:addEffect(fk.Damage, {
    anim_type = "control",
    mute = true,
    is_delay_effect = true,
    can_trigger = function(self, event, target, player, data)
        return data.card and data.card.skillName == "Lua__guanku" and
            player:hasSkill("Lua__guanku")
    end,
    on_cost = function() return true end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        room:endTurn()
    end,
})

return Lua__guanku